@()(implicit session: Session)

@config.main("Download") {

    <style>
        #list{
            margin-left: 20px;
        }

    </style>

    <div class="body-box">
        <div class="page-box">

            @config.subTitle("Download")

            <div class="main-body">


                <div id="list"></div>

            </div>
        </div>
    </div>

    <script>

        $(function (){
            $.post("@routes.DownloadController.getDownloadList",(data)=>{
                let html = ""
                $.each(data.list,(i,v)=>{
                    html += `<p><a href="/COADB/download/downloadFile?file=${v}" target="_blank">${v}</a></p>`

                })

                $("#list").html(html)

            })



        })

    </script>
}